#ifndef QQ_TEXt_EDIT_STYLE
#define QQ_TEXt_EDIT_STYLE

#include <qproxystyle.h>

#include <Def.h>

class QQTextEditStyle : public QProxyStyle
{
	Q_OBJECT
		Q_PROPERTY(qreal pExpandMarkWidth READ getExpandMarkWidth WRITE setExpandMarkWidth NOTIFY pExpandMarkWidthChanged)

public:
	void setExpandMarkWidth(qreal ExpandMarkWidth);
	qreal getExpandMarkWidth() const;
signals:
	void pExpandMarkWidthChanged();
public:
	explicit QQTextEditStyle(QStyle* style = nullptr);
	~QQTextEditStyle();
	void drawControl(ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = nullptr) const override;

private:
	qreal _pExpandMarkWidth;
	ElaThemeType::ThemeMode _themeMode;
};

#endif // !QQ_TEXt_EDIT_STYLE


